package CH8;

public class Example8_1 {
    public static void main(String args[]) {
        Math  math;
/*        double b=math.PI;*/
        double a=Math.PI;
        String hello = "你好";
        String testOne = "你"+"好";             //【代码1】
        System.out.println("1:"+(hello == testOne));   //输出结果是true
        System.out.println("2:"+("你好" == testOne));  //输出结果是true
        System.out.println("3:"+("你好" == hello));    //输出结果是true
        String you = "你";
        String hi = "好";
        String testTwo = you+hi;                //【代码2】
        System.out.println("4:"+(hello == testTwo));   //输出结果是false
        String testThree = you+hi;
        System.out.println("5:"+(testTwo == testThree)); //输出结果是false
        final String you2 = "你";
        final String hi2 = "好";
        String testTwo2 = you2+hi2;                //【代码2】
        System.out.println("6:"+(hello == testTwo2));   //输出结果是true
        System.out.println("7:"+("你好"== testTwo2)); //输出结果是true
    }
}
